# from time import time


# def main():
#     total = 0
#     number_list = [x for x in range(1, 10000001)]
#     staet = time()
#     for number in number_list:
#         total += number
#     print(total)
#     end = time()
#     print('一共耗时%.2f秒' % (end - staet))


# if __name__ == "__main__":
#     main()
from multiprocessing import Process, queues
from random import randint
from time import time, sleep


def task_handler(curr_list, result_queue):
    total = 0
    for number in curr_list:
        total += number
    result_queue.put(total)

def main():
    process = []
    number_list = [x for x in range(1,100000000)]
    result_queue = queues()
    index = 0
    for _ in range(8):
        p = Process(target=task_handler, args=(number_list[index:index + 12500000],result_queue))
        
